<?php

namespace app\event;

use app\services\KeywordService;
use plugin\admin\app\model\UserSearchHistory;

class Music
{
    public function addSearchHistory($keyword)
    {
        KeywordService::add($keyword, UserSearchHistory::TYPE_MUSIC);
    }

    public function addSearchMenuHistory($keyword)
    {
        KeywordService::add($keyword, UserSearchHistory::TYPE_MUSIC_MENU);
    }
}